package iedcyt.acute.controller.listeners.document;

import iedcyt.acute.model.DocumentModel;
import iedcyt.acute.view.DocumentView;

import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class CloseListener implements DisposeListener  {

	private DocumentView _view;
	private DocumentModel _model;
	
	public CloseListener(DocumentView view, DocumentModel model) {
		this._model = model;
		this._view = view;
	}	
	
	@Override
	public void widgetDisposed(DisposeEvent arg0) {
		_view.closeWindow();
		
		
	}

}
